package com.apes.framework.plugin.soe.store.database.repository;

import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.framework.plugin.soe.metadata.BusinessType;
import com.apes.framework.plugin.soe.metadata.Scene;
import com.apes.framework.plugin.soe.metadata.SceneInstanceRole;

public interface SceneInstanceRoleRepository extends CustomRepository<SceneInstanceRole, String> {

    SceneInstanceRole findBySceneAndBusinessTypeAndBusinessKey(Scene scene, BusinessType businessType, String businessKey);

    SceneInstanceRole findFirstBySceneIdAndBusinessTypeIdAndBusinessKey(String sceneId, String businessTypeId, String businessKey);

}